<?php
/**
 * The template used for displaying page content in home-page.php
 *
 * @package WordPress
 * @subpackage Taekwon
 * @since Taekwon 1.0
 */
?>

<section id="highlights">
  
<?php
query_posts(array ('category_name' => 'in-evidenza', 'post_status' => 'publish', 'posts_per_page' => 10, 'orderby' => 'post_date', 'order' => 'DESC' ));

if(have_posts()) {
  while(have_posts()) {
    the_post();
?>
  <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    <header>
      <h2 class="entry-title"><?php the_title();?></h2>
      <h3 class="entry-date">
<?php
	global $currentday, $previousday;
  
  $previousday = '';
  the_date();
?>
      </h2>
    </header>
<?php if (has_post_thumbnail()) { ?>
    <div class="entry-content"><?php the_post_thumbnail(); ?></div>
<?php } ?>
    <div class="entry-content">
      <?php the_content('...'); ?>
      <!--
      <a href="<?php the_permalink(); ?>">post completo</a>
      -->
    </div>
    
  </article>
<?php
  }
}

wp_reset_query();
?>
</section>

<?php
if (!get_the_content()) return;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

	<div class="entry-content">
		<?php the_content(); ?>
		<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'taekwon' ) . '</span>', 'after' => '</div>' ) ); ?>
	</div><!-- .entry-content -->
	<footer class="entry-meta">
		<?php edit_post_link( __( 'Edit', 'taekwon' ), '<span class="edit-link">', '</span>' ); ?>
	</footer><!-- .entry-meta -->

</article><!-- #post-<?php the_ID(); ?> -->
